package com.happy016.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestController {

    @RequestMapping(method = RequestMethod.GET,value = "/test")
    public String testMethod1(){
        return "";
    }
    @RequestMapping(value = "/json",method = RequestMethod.GET)
    @ResponseBody
    public String testJson(){
        return "test";
    }
}
